package com.snail.model.vo.mall;

import lombok.Data;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

@Data
public class ProductReviewVO {
    // 原有字段
    private Integer id;
    private Integer productId;
    private Integer skuId;
    private Long userId;
    private Integer score;
    private String content;
    private String images;
    private String videos;
    private Integer status;
    private LocalDateTime updateTime;
    private Integer parentId;       // 父评论ID（0表示一级评论）
    private Integer deleted;

    // 用户关联字段
    private String username;
    private String filePath;

    // 新增：子评论列表（实现嵌套）
    private List<ProductReviewVO> children = new ArrayList<>();
}
